﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TradingServer.Core.Entities
{
    public class Security
    {
        public string Tiker { get; private set; }
        public decimal LotSize { get; private set; }

		public Security(string tiker, decimal lotSize)
		{
			Tiker = tiker;
			LotSize = lotSize;
		}

		public override int GetHashCode()
		{
			return Tiker.GetHashCode();
		}

		public override bool Equals(object obj)
		{
			if (obj == null) return false;
			if (!(obj is Security)) return false;
			var s = obj as Security;
			return Tiker == s.Tiker;
		}
    }
}
